//
//  JwSkinerDeallocer.m
//  JwPack
//
//  Created by 陈警卫 on 2024-08-02.
//

#import "JwSkinerDeallocer.h"

@implementation JwSkinerDeallocer

- (void)dealloc {
    if (self.didSkinerDeallocerBlock) {
        self.didSkinerDeallocerBlock();
        self.didSkinerDeallocerBlock = nil;
    }
}

+ (instancetype)skinerDeallocerBlock:(void(^)(void))block {
    JwSkinerDeallocer *exer = [[JwSkinerDeallocer alloc] init];
    exer.didSkinerDeallocerBlock = block;
    return exer;
}

@end
